// 实人认证开始
import 'package:aliface/model/verifier_result.dart';

class VerifierData {
  VerifierResult? type;
  int? code;
  String? msg;

  VerifierData({required this.type, this.code, this.msg});

  Map<String, dynamic> toJson() {
    return <String, dynamic>{}
      ..putIfAbsent('type', () => type)
      ..putIfAbsent('code', () => code)
      ..putIfAbsent('msg', () => msg);
  }

  VerifierData.fromJson(Map json) {
    type = json['type'] ?? VerifierResult.no;
    code = json['code'] ?? "";
    msg = json['msg'] ?? "";
  }
}
